<script type="text/javascript" src="${base}/scripts/jsgl/to_change_status.js"></script>
<form id="form_fp_check" action="" method="post" style="height:100%">
    <input name="fpId" type="hidden" value="${(fp.id)!''}"/>
    <input name="shzt" type="hidden" value="2"/>
    <input id="fp_xsjsd_id" type="hidden" value="${(fp.id)!''}"/>

    <div class="easyui-tabs" id="fp_tabs" fit="true">
        <div title="发票基本信息" style="height: 100%;overflow-y: auto">
            <table style="width:98%" class="tb tab-t t-bor">
                <col width="10%"/>
                <col width="35%"/>
                <col width="10%"/>
                <col width="35%"/>
                <tr>
                    <th style="font-size:12px;font-weight:bold">结算单号：</th>
                    <td colspan="3" style="font-size:12px;font-weight:bold"><#--<input name="fp.jsdh" class="input-text-border-zero" readonly="readonly"
                                           style="width:655px;background-color:#F8F8FF;font-weight: bold" type="text"
                                           value="${(fp.jsdh)!(jsdh)}"/>-->
                        ${(fp.jsdh)!}
                    </td>
                </tr>
                <tr>
                    <th style="font-size:12px;font-weight:bold">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司：</th>
                    <td style="font-size:12px;font-weight:bold">     <#--<td><input   style="width:270px;" type="text" readonly="readonly"
                               value="${(fp.gs.qc)!}"
                               class=" input-text"/>-->
                    ${(fp.gs.qc)!}
                    </td>
                    <input id="fp_gs_Id" name="fp.gs.id"
                           type="hidden" value="${(fp.gs.id)!}"/>
                    <th style="font-size:12px;font-weight:bold">申&nbsp;请&nbsp;人：</th>
                    <td style="font-size:12px;font-weight:bold">
                    <#-- <input  type="text" style="width:270px;" readonly="readonly"
                            value="${(fp.sqr.xm)!}"
                            class="input-text" />-->
                          ${(fp.sqr.xm)!}
                    </td>
                </tr>
                <tr>
                    <th style="font-size:12px;font-weight:bold">客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户：</th>
                    <td style="font-size:12px;font-weight:bold"><#--<input  type="text" style="width:270px;" readonly="readonly"
                                   value="${(fp.glqy.qc)!}"
                                   class="input-text" />-->
                        ${(fp.glqy.qc)!}
                    </td>
                    <th style="font-size:12px;font-weight:bold">纳&nbsp;税&nbsp;&nbsp;号：</th>
                    <td style="font-size:12px;font-weight:bold"><#--<input  type="text" style="width:270px;" readonly="readonly"
                                value="${(fp.glqy.qyfr.nsh)!}"
                                class="input-text" />-->
                        ${(fp.glqy.qyfr.nsh)!}
                </tr>
                <tr>
                    <th style="font-size:12px;font-weight:bold">发票种类：</th>
                    <td style="font-size:12px;font-weight:bold">
                    <#--    <#if fp.fpzl==0>
                            <input  type="text" style="width:270px;" readonly="readonly"
                                    value="&nbsp;增&nbsp;&nbsp;票"
                                    class="input-text" />
                        <#elseif fp.fpzl==1>
                            <input  type="text" style="width:270px;" readonly="readonly"
                                    value="&nbsp;普&nbsp;&nbsp;票"
                                    class="input-text" />
                        <#elseif fp.fpzl==2>
                            <input  type="text" style="width:270px;" readonly="readonly"
                                    value="&nbsp;其&nbsp;&nbsp;他"
                                    class="input-text" />
                        <#elseif fp.fpzl==3>
                            <input  type="text" style="width:270px;" readonly="readonly"
                                    value="&nbsp;另&nbsp;开&nbsp;票"
                                    class="input-text" />
                        </#if>-->
                    <#if fp.fpzl==0>&nbsp;增&nbsp;&nbsp;票</#if>
                    <#if fp.fpzl==1>&nbsp;普&nbsp;&nbsp;票</#if>
                    <#if fp.fpzl==2>&nbsp;其&nbsp;&nbsp;他</#if>
                    <#if fp.fpzl==3>&nbsp;另&nbsp;开&nbsp;票</#if>

                    </td>
                    <th style="font-size:12px;font-weight:bold">发票张数：</th>
                    <td style="font-size:12px;font-weight:bold">
                    <#if fp.type==1><input type="text" style="width:270px;" required="true"
                                           value="${(fp.fpzs)!}" name="fpzs"
                                           class="input-text"/>
                    <#else>
                    ${(fp.fpzs)!}
                    </#if>

                    </td>
                </tr>
                <tr>
                    <th style="font-size:12px;font-weight:bold">发票号码：</th>
                    <td style="font-size:12px;font-weight:bold">
                    <#if fp.type==1> <input type="text" style="width:270px;" required="true"
                                            value="${(fp.hm)!}" name="fphm"
                                            class="input-text"/>
                    <#else>
                    ${(fp.hm)!}
                    </#if>
                    </td>
                    <th style="font-size:12px;font-weight:bold">发票总额：</th>
                    <td style="font-size:12px;font-weight:bold">
                    <#if fp.type==1> <input readonly="readonly" class="input-text" id="fp_fpze"
                                            style="width:270px;background-color:#F8F8FF;" type="text" name="fpze"
                                            value="${(fp.fpze)!''}"/>
                    <#elseif fp.type==2>
                        <input readonly="readonly" class="input-text" id="fp_fpze"
                               style="width:270px;background-color:#F8F8FF;" type="text" name="fpze"
                               value="${(fp.fpze)!''}"/>
                    <#else>
                    ${(fp.fpze)!}
                    </#if>
                    </td>
                </tr>
                <tr>
                    <th style="font-size:12px;font-weight:bold">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                    <td style="font-size:12px;font-weight:bold;height: 100px;" colspan="3">
                    <#--<td colspan="3">
                        <textarea style="width:664px;height: 101px" rows="2" class="textarea" readonly="readonly"
                                  >${(fp.bz)!}</textarea>-->
                  ${(fp.bz)!}
                    </td>
                </tr>
            <#if fp.type==0 >
                <input id="fp_me" name="fp.me" class="input-text-border-zero"
                       type="hidden" value="${(fp.me?string("0.00"))!}"/>
                <input id="fp_je" name="fp.je" class="input-text-border-zero"
                       type="hidden" value="${(fp.je?string("0.00"))!}"/>
                <input id="fp_se" name="fp.se" class="input-text-border-zero"
                       type="hidden" value="${(fp.se?string("0.00"))!}"/>
                <input id="fp_ce" name="fp.ce" class="input-text-border-zero"
                       type="hidden" value="${(fp.ce?string("0.00"))!}"/>
                <input id="fp_ddfy" name="fp.ddfy" class="input-text-border-zero"
                       type="hidden" value="${(fp.ddfy?string("0.00"))!}"/>
            </#if>
            </table>
        </div>
    <#if fp.type==1>
        <div title="销售单明细">
            <table style="width:100%;" class="tb tab-t">
                <table id="grid_xsd_fp"></table>
                <div style="width: 995px">
                    <tr>
                        <th>代垫运费(元)：</th>
                        <td>
                            <input id="fp_xsjsd_ddfy" name="fp.ddfy" class="input-text-border-zero"
                                   readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   type="text" value="${(fp.ddfy)!0}"/>
                        </td>
                        <th>净&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_xsjsd_je" name="fp.je" class="input-text-border-zero" readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                                   value="${(fp.je)!0}"/>
                        </td>
                        <th>税&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_xsjsd_se" name="fp.se" class="input-text-border-zero" readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                                   value="${(fp.se)!0}"/>
                        </td>
                        <th>面&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_xsjsd_me" name="fp.me" readonly="readonly" class="input-text-border-zero"
                                   type="text" style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(fp.me)!0}"/>
                            <th>差&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_xsjsd_ce" name="fp.ce" readonly="readonly" class="input-text-border-zero"
                                   type="text" style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(fp.ce)!0}"/>
                        </td>
                    </tr>
                </div>
            </table>
        </div>
    <#elseif fp.type==2>
        <div title="结算单明细">
            <table style="width:100%;" class="tb tab-t">
                <table id="grid_fp_wld"></table>
                <div style="width: 995px">
                    <tr>
                        <th>代垫运费(元)：</th>
                        <td>
                            <input id="fp_wljsd_ddfy" name="fp.ddfy" class="input-text-border-zero"
                                   readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   type="text" value="${(fp.ddfy)!0}"/>
                        </td>
                        <th>净&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_wljsd_je" name="fp.je" class="input-text-border-zero" readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                                   value="${(fp.je)!0}"/>
                        </td>
                        <th>税&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_wljsd_se" name="fp.se" class="input-text-border-zero" readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                                   value="${(fp.se)!0}"/>
                        </td>
                        <th>面&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_wljsd_me" name="fp.me" readonly="readonly" class="input-text-border-zero"
                                   type="text" style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(fp.me)!0}"/>
                            <th>差&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="fp_wljsd_ce" name="fp.ce" readonly="readonly" class="input-text-border-zero"
                                   type="text" style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(fp.ce)!0}"/>
                        </td>
                    </tr>
                </div>
            </table>
        </div>
        <div title="资金补差单">
            <table id="grid_zjbcd_fp_wljsd"></table>
        </div>
    <#else>
    </#if>
    </div>
</form>

